﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Model;
using Model.Components;
using FrameWork;
using FrameWork.Components;
using FrameWork.WebControls;

namespace FrameWork.web.Web
{
    public partial class Manager : System.Web.UI.Page
    {
        Int32 IDX = (Int32)Common.sink("IDX", MethodType.Get, 10, 0, DataType.Int);
        protected void Page_Load(object sender, EventArgs e)
        { 
            if (!Page.IsPostBack)
            {
                OnStart();
            }
        }

        private void OnStart()
        {
            T_WebEntity ut = BusinessFacadeModel.T_WebDisp(IDX);
            
            OnStartData(ut);
            
        }

        private void OnStartData(T_WebEntity ut)
        {
            TID_Disp.Text = ut.TID.ToString(); 
            TTtle_Disp.Text = ut.TTtle.ToString();
            TContent_Disp.Text = ut.TContent.ToString();
            XXian_Disp.Text = ut.XXian.ToString();
            Pevel_Disp.Text = ut.Pevel.ToString();
            PContent_Disp.Text=ut.PContent.ToString();
        }

    }
}